package com.aiti.lulian.mapper.card.industry;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.industry.FeaturedIndustryQueryDto;
import com.aiti.lulian.entity.industry.CardGovFeaturedIndustry;
import com.aiti.lulian.vo.industry.FeaturedIndustryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CardGovFeaturedIndustryMapper extends SuperMapper<CardGovFeaturedIndustry> {

    Integer getCountByName(@Param("industryName")String industryName);

    List<FeaturedIndustryVo> queryFeaturedIndustryList();

    void deleteFeaturedIndustry(@Param("baseIds")List<String> baseIds);

    void updateFeaturedIndustry(@Param("po") CardGovFeaturedIndustry po);

    List<FeaturedIndustryVo> queryFeaturedIndustryListPage(IPage<FeaturedIndustryVo> page, @Param("dto") FeaturedIndustryQueryDto queryDto);

    Integer querySupportCount(@Param("baseIds")List<String> baseIds);
}
